package com.foreveross.dao;

public interface BaseDAO {
	
    public <T extends Object> void save(T entity) throws Exception;
	
	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz,String id) throws Exception;
	
	public Object findByIntId(Class clazz,int id) throws Exception;
		
	public <T extends Object> T updateObject(T t) throws Exception;
	
	public <T> T updateObject(T t,String id) throws Exception;
	
	public void deleteObjec(String tableObj,String id) throws Exception;
	
	public Object findObject(Class clazz, String id) throws Exception;
	
	

}
